/*
	Copyright (c) 2010 <copyright holders>
	This source code is licensed under The MIT License,
	see the file LICENSE for details.
	*/

#ifndef LOCAL_HPP
#define LOCAL_HPP

#include "Net.hpp"

#include <list>

namespace spelprog2 {
namespace net {

struct Local : public Net {
    Local();

    virtual void poll();
    virtual void run();

    virtual UserId getMyClientId() const;

    virtual void sendToUser(const spelprog2::Message & msg, UserId receiver);
    virtual void sendToAll(const spelprog2::Message & msg);
};

}; //namespace net
}; //namespace spelprog2

#endif //LOCAL_HPP